package com.xingkeduo.pojo.query;

import com.xingkeduo.util.pojo.base.BaseQuery;
import com.xingkeduo.util.pojo.enums.SexEnum;
import com.xingkeduo.util.pojo.enums.YesNoEnum;
import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * @Description:
 * @Author:gaozifeng
 * @Date 2019/3/1 14:30
 **/
@Alias("ConsumerPrivateQO")
public class ConsumerPrivateQO extends BaseQuery<ConsumerPrivateQO> {

    //mina/gzhOpenid
    private String openId;
    //用户风格
    private String userStyle;

    private int careerId;
    //职业定位
    private String career;
    private String distanceId;
    //到点距离
    private String distance;

    //性别
    private SexEnum sex;

    private String phone;
    private int ageId;
    private String age;

    private String cityId;

    List<Long> ids;

    private YesNoEnum isDelete;

    private String gzhOpenId;

    private String minaOpenId;

    public String getOpenId() {
        return openId;
    }

    public ConsumerPrivateQO setOpenId(String openId) {
        this.openId = openId;
        return this;
    }

    public int getCareerId() {
        return careerId;
    }

    public void setCareerId(int careerId) {
        this.careerId = careerId;
    }

    public String getDistanceId() {
        return distanceId;
    }

    public void setDistanceId(String distanceId) {
        this.distanceId = distanceId;
    }

    public int getAgeId() {
        return ageId;
    }

    public void setAgeId(int ageId) {
        this.ageId = ageId;
    }

    public YesNoEnum getIsDelete() {
        return isDelete;
    }

    public ConsumerPrivateQO setIsDelete(YesNoEnum isDelete) {
        this.isDelete = isDelete;
        return this;
    }

    public List<Long> getIds() {
        return ids;
    }

    public ConsumerPrivateQO setIds(List<Long> ids) {
        this.ids = ids;
        return this;
    }

    public String getUserStyle() {
        return userStyle;
    }

    public void setUserStyle(String userStyle) {
        this.userStyle = userStyle;
    }

    public String getCareer() {
        return career;
    }

    public void setCareer(String career) {
        this.career = career;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public SexEnum getSex() {
        return sex;
    }

    public void setSex(SexEnum sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public ConsumerPrivateQO setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getCityId() {
        return cityId;
    }

    public ConsumerPrivateQO setCityId(String cityId) {
        this.cityId = cityId;
        return this;
    }

    public String getGzhOpenId() {
        return gzhOpenId;
    }

    public ConsumerPrivateQO setGzhOpenId(String gzhOpenId) {
        this.gzhOpenId = gzhOpenId;
        return this;
    }

    public String getMinaOpenId() {
        return minaOpenId;
    }

    public ConsumerPrivateQO setMinaOpenId(String minaOpenId) {
        this.minaOpenId = minaOpenId;
        return this;
    }

    public boolean isEmpty() {
        if (!isSuperEmpty() || sex != null || age != null || phone != null || cityId != null || ageId > 0)
            return false;

        return true;
    }
}
